package com.cloud.api.domain.tsp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author haohaibo
 * @since 2023-12-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_statute")
@Schema(name = "Statute", description = "规约管理")
public class Statute extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId("id")
    private String id;

    @Schema(description = "规约名称")
    @TableField("statute_name")
    @NotEmpty(message = "{validation.Statute.name}")
    @Size(max = 10,message = "{validation.common.maxSize}")
    private String statuteName;

}
